<template>
  <div>
    <h2>父组件</h2>
    <Child :message="parentMsg"/>
  </div>
</template>

<script setup>
import {ref} from 'vue';
import Child from './child.vue';

const parentMsg = ref('这是来自父组件的消息');
</script>
